

#ifndef _PLCONFIG_H_
#define _PLCONFIG_H_

#include "typedef.h"



/*******************************************************************
 ********       Module En/disable module                    *******
 *******************************************************************/
#define PLCFG_CCP_ENABLED               (0U)
#define PLCFG_DTC_ENABLED               (0U)


#define PLCFG_SPI_TASK_TIME				(2U)
#define PLCFG_INPUT_SAMPLE_TASK_TIME 	(2U)
#define PLCFG_AD_SAMPLE_TASK_TIME		(2U)
#define PLCFG_CAN_TRX_TASK_TIME			(1U)
#define PLCFG_APL_TASK_TIME				(5U)
#define PLCFG_NM_TASK_TIME				(5U)
#define PLCFG_OBDM_TASK_TIME			(10U)
#define PLCFG_EEP_TASK_TIME				(2U)
#define PLCFG_SLEEP_TASK_TIME			(10u)
#define PLCFG_DESC_TASK_TIME			(1U)
#define PLCFG_ISOTP_TASK_TIME			(1U)
#define PLCFG_IO2PWM_TASK_TIME		    (2U)
#define PLCFG_CCP_DAQ_PROC_TASK_TIME    (PLCFG_CAN_TRX_TASK_TIME)


#define M_make_uw(hi,lo)				(	((uint16)(hi)<< 8)| \
											((uint16)(lo)<< 0)  )

#define M_make_ud(hh,hl,lh,ll)			(	((uint32)(hh)<<24)| \
											((uint32)(hl)<<16)| \
											((uint32)(lh)<< 8)| \
											((uint32)(ll)<< 0)  )



/*******************************************************************
 ********  Flash / Ram / EEPRom / Register range definition  *******
 *******************************************************************/


#endif /* _PLCONFIG_H_ */
